﻿namespace System.Web
{
    internal class IntegerArrayAllocator : BufferAllocator
    {
        private int _arraySize;

        internal IntegerArrayAllocator(int arraySize, int maxFree)
            : base(maxFree) { _arraySize = arraySize; }

        protected override object AllocBuffer()
        {
            return new int[_arraySize];
        }
    }
}
